// 放置全局指令
// 引入Vue创建全局
import Vue from 'vue'
import store from '@/store'
const adminPerms = '*:*:*'
Vue.directive('permisson', {
  inserted(el, binding) {
    const perms = store.state.menu.permisson
    if (perms.includes(adminPerms)) {
      return
    }
    if (!perms.includes(binding.value)) {
      el.remove
    }
    console.log(el)
    console.log(binding)
  }
})
